﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace NoiseLab
{
    public partial class TypeSelectionDialog : Form
    {
        public TypeSelectionDialog(List<Type> types)
        {
            InitializeComponent();
                        
            cboTypes.DataSource = types;
        }

        public Type SelectedType
        {
            get
            {
                return (Type)cboTypes.SelectedItem;
            }
        }

        private void btnAdd_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
    }
}
